package com.ys.entity.sys;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TS_MenuInfo", catalog="guid")
public class TsMenuInfo extends BaseEntity<TsMenuInfo> {

	@YsField(nameDataBase="Guid", nameJava="guid", typeDataBase="varchar")
	private String guid;
	@YsField(nameDataBase="Pguid", nameJava="pguid", typeDataBase="varchar")
	private String pguid;
	@YsField(nameDataBase="MenuCaption", nameJava="menuCaption", typeDataBase="varchar")
	private String menuCaption;
	@YsField(nameDataBase="Menuurl", nameJava="menuurl", typeDataBase="varchar")
	private String menuurl;
	@YsField(nameDataBase="MenuOrder", nameJava="menuOrder", typeDataBase="int")
	private Integer menuOrder;
	@YsField(nameDataBase="MenuICON", nameJava="menuICON", typeDataBase="varchar")
	private String menuICON;
	@YsField(nameDataBase="MenuType", nameJava="menuType", typeDataBase="int")
	private Integer menuType;
	@YsField(nameDataBase="MenuState", nameJava="menuState", typeDataBase="int")
	private Integer menuState;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;

	public String getGuid() {
		return guid;
	}
	public TsMenuInfo setGuid(String guid) {
		this.guid = guid;
		return this;
	}
	public String getPguid() {
		return pguid;
	}
	public TsMenuInfo setPguid(String pguid) {
		this.pguid = pguid;
		return this;
	}
	public String getMenuCaption() {
		return menuCaption;
	}
	public TsMenuInfo setMenuCaption(String menuCaption) {
		this.menuCaption = menuCaption;
		return this;
	}
	public String getMenuurl() {
		return menuurl;
	}
	public TsMenuInfo setMenuurl(String menuurl) {
		this.menuurl = menuurl;
		return this;
	}
	public Integer getMenuOrder() {
		return menuOrder;
	}
	public TsMenuInfo setMenuOrder(Integer menuOrder) {
		this.menuOrder = menuOrder;
		return this;
	}
	public String getMenuICON() {
		return menuICON;
	}
	public TsMenuInfo setMenuICON(String menuICON) {
		this.menuICON = menuICON;
		return this;
	}
	public Integer getMenuType() {
		return menuType;
	}
	public TsMenuInfo setMenuType(Integer menuType) {
		this.menuType = menuType;
		return this;
	}
	public Integer getMenuState() {
		return menuState;
	}
	public TsMenuInfo setMenuState(Integer menuState) {
		this.menuState = menuState;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TsMenuInfo setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}

	public static TsMenuInfo tsMenuInfo(
		String guid,
		String pguid,
		String menuCaption,
		String menuurl,
		Integer menuOrder,
		String menuICON,
		Integer menuType,
		Integer menuState,
		Date createTime
			) {
		TsMenuInfo entity = new TsMenuInfo();
		entity.setGuid(guid);
		entity.setPguid(pguid);
		entity.setMenuCaption(menuCaption);
		entity.setMenuurl(menuurl);
		entity.setMenuOrder(menuOrder);
		entity.setMenuICON(menuICON);
		entity.setMenuType(menuType);
		entity.setMenuState(menuState);
		entity.setCreateTime(createTime);
		return entity;
	}
}